<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" th:with="bgConfig=${@configTag.getConfigValueMap('butgo')},link=${@linkTag.getLinkById(linkId)}" >
<head th:if="${link!=null}">
    <th:block th:include="butgo/bg_include :: bg_head(title=${link.remark+' - '+bgConfig['oly.web.title']},
    keywords=${link.keywords},
    description=${link.description},
    bgConfig=${bgConfig})" />
</head>

<head th:if="${link!=null}">
    <th:block th:include="butgo/bg_include :: bg_head(title=${'你请求的外链没有找到-'+bgConfig['oly.web.title']},
    keywords='链接不存在',
    description='链接不存在,原因可能是链接已经被删除',
    bgConfig=${bgConfig})" />
</head>
	<body>
	  <th:block th:include="butgo/bg_include ::bg_side_bar" />
	  <div class="page" id="body-wrap" th:if="${link!=null}">
		<th:block th:include="butgo/bg_include :: bg_header_half(siteTitle='友情链接',siteImg=@{/static/butgo/images/thumbs/0.jpg})" />
		<main class="layout" id="content-inner" style="height: auto !important;">           
			<th:block th:include="butgo/bg_include :: bg_link_info(link=${link})" />
			<th:block th:include="butgo/bg_include :: bg_right_aside" />
		</main>
	  </div>
	  
	  <th:block th:if="${link==null}"
	  	th:include="butgo/bg_include :: bg_404_page(errTitle='外链不存在',errContent='外链不存在或者审核未通过,有疑问请联系管理员后再试')" />
	  <th:block th:include="butgo/bg_include :: bg_right_tool" />
	  <th:block th:include="butgo/bg_include :: bg_local_search" />
	  <th:block th:include="butgo/bg_include :: bg_js(bgConfig=${bgConfig})" />
	</body>
</html>